﻿#ifndef LOGINDEMO_H
#define LOGINDEMO_H

#include <QDialog>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkRequest>
#include <QtNetwork/QNetworkReply>
#include <QtNetwork>

QT_BEGIN_NAMESPACE
namespace Ui { class LoginDemo; }
QT_END_NAMESPACE

class LoginDemo : public QDialog
{
    Q_OBJECT

public:
    LoginDemo(QWidget *parent = nullptr);
    ~LoginDemo();
    QString getIP();
    QString getMAC();
    QString getlocalHostName();
    QString getlocalName();
    //主机名
    //QString localHostName;


private slots:
    void on_btn_ok_clicked();

    void finishRequest(QNetworkReply*);  //处理reply的slot

    void selectMode();//选择校验方式前

    void on_check_prot_stateChanged(int arg1);

    void on_btn_check_clicked();

    void on_com_check_currentIndexChanged(int index);

private:
    Ui::LoginDemo *ui;
    QNetworkAccessManager manager;   //manager  相关注意点见后文
    QNetworkRequest request;    //request

};
#endif // LOGINDEMO_H
